<template>
  <div id="nav">
      <button type="button" @click="btn">变化</button>
	  <button type="button" @click="save">存入</button>
  </div>
</template>
<script type="text/javascript" setup>
	import {appStore,setting} from "../packages";
	let btn = () => {
		console.log(setting)
		// console.log(appStore)
		setting.NAME = "name"
	}
	let save = () => {
		appStore.name = "孙刘森";
	}
	
	
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
